package com.leetcode.recursion;

/**
 * ��һ�����Ľײ�
 * @author Henry
 *
 */
public class Factorial {
	public static int getFactorial(int num){
		if(num==1){
			return num;
		}
		return num*getFactorial(num-1);
	}
	
	public static void main(String[] args) {
		System.out.println(getFactorial(9));
	}
}
